package com.ruoyi.fit.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运动健身数据对象 health_exercise
 * 
 * @author useragent-1
 * @date 2025-05-16
 */
public class HealthExercise extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 运动日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "运动日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exerciseDate;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 运动类型编码 */
    @Excel(name = "运动类型编码")
    private String exerciseType;

    /** 运动项目名称 */
    @Excel(name = "运动项目名称")
    private String exerciseName;

    /** 持续时间(分钟) */
    @Excel(name = "持续时间(分钟)")
    private Long duration;

    /** 消耗卡路里(千卡) */
    @Excel(name = "消耗卡路里(千卡)")
    private Long calories;

    /** 运动强度 */
    @Excel(name = "运动强度")
    private String intensity;

    /** 运动距离(km) */
    @Excel(name = "运动距离(km)")
    private BigDecimal distance;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String deviceId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setExerciseDate(Date exerciseDate) 
    {
        this.exerciseDate = exerciseDate;
    }

    public Date getExerciseDate() 
    {
        return exerciseDate;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setExerciseType(String exerciseType) 
    {
        this.exerciseType = exerciseType;
    }

    public String getExerciseType() 
    {
        return exerciseType;
    }

    public void setExerciseName(String exerciseName) 
    {
        this.exerciseName = exerciseName;
    }

    public String getExerciseName() 
    {
        return exerciseName;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setCalories(Long calories) 
    {
        this.calories = calories;
    }

    public Long getCalories() 
    {
        return calories;
    }

    public void setIntensity(String intensity) 
    {
        this.intensity = intensity;
    }

    public String getIntensity() 
    {
        return intensity;
    }

    public void setDistance(BigDecimal distance) 
    {
        this.distance = distance;
    }

    public BigDecimal getDistance() 
    {
        return distance;
    }

    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("exerciseDate", getExerciseDate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("exerciseType", getExerciseType())
            .append("exerciseName", getExerciseName())
            .append("duration", getDuration())
            .append("calories", getCalories())
            .append("intensity", getIntensity())
            .append("distance", getDistance())
            .append("deviceId", getDeviceId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
